![]() |
MPTaskIsPreemptive |
||||
Header: | Multiprocessing.h | Carbon status: | Supported | |
Determines whether a task is preemptively scheduled.
Boolean MPTaskIsPreemptive ( MPTaskID taskID );
The task you want to check. Pass kMPInvalidIDErr if you want to specify the current task.
If true, the task is preemptively scheduled. If false, the task is cooperatively scheduled.
If you have code that may be called from either cooperative or preemptive tasks, that code can call MPTaskIsPreemptive if its actions should differ depending on its execution environment.
Introduced with Multiprocessing Services 2.0.
Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)